/// 当前页结果集
class WriteoffTeamPageReponseDto {
  /// 主键id
  final int? id;
  /// 团队名称
  final String? teamName;
  /// 主账号
  final String? mainUserName;
  /// 当前余额，代理团队付给平台方的现金，单位美元
  final String? currentBalance;
  /// 预授权额度，平台方预授给代理团队的，相当于代理团队的欠款，单位美元
  final int? authAmount;
  /// 创建时间
  final String? createTime;
  /// 是否已透支，1-是，0-否
  final int? overdrew;
  /// 数据状态（1-有效，0-无效）
  final int? status;

  WriteoffTeamPageReponseDto({
    this.id,
    this.teamName,
    this.mainUserName,
    this.currentBalance,
    this.authAmount,
    this.createTime,
    this.overdrew,
    this.status,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (id != null) data['id'] = id;
    if (teamName != null) data['teamName'] = teamName;
    if (mainUserName != null) data['mainUserName'] = mainUserName;
    if (currentBalance != null) data['currentBalance'] = currentBalance;
    if (authAmount != null) data['authAmount'] = authAmount;
    if (createTime != null) data['createTime'] = createTime;
    if (overdrew != null) data['overdrew'] = overdrew;
    if (status != null) data['status'] = status;
    return data;
  }

  factory WriteoffTeamPageReponseDto.fromJson(Map<String, dynamic> json) {
    return WriteoffTeamPageReponseDto(
      id: json['id'],
      teamName: json['teamName'],
      mainUserName: json['mainUserName'],
      currentBalance: json['currentBalance'],
      authAmount: json['authAmount'],
      createTime: json['createTime'],
      overdrew: json['overdrew'],
      status: json['status'],
    );
  }
}